home *** CD-ROM | disk | FTP | other *** search
- function istalnum(c)
- {
- if (c >= '0' && c <= '9')
- return true;
- else if (c >= 'a' && c <= 'z')
- return true;
- else if (c >= 'A' && c <= 'Z')
- return true;
- else
- return false;
- }
-
- function IsValidAliasPath(sPath)
- {
- iLength = sPath.length;
- if (!iLength)
- return false;
- /* Dumb validation: simply check if there is at least one alphanumeric
- character. */
- for(i = 0; i < iLength; i++)
- {
- if(istalnum(sPath.substr(i, 1)))
- return true;
- }
- return false;
- }
-